package cn.action;

import cn.beans.AboutUs;

public class ContractUsAction extends BaseAction {

	private AboutUs contractUs;
	private String content;

	public String readContractUs(){
		contractUs = commonservice.findById("contractus", new AboutUs());
		return SUCCESS;
	}
	
	public String updateContractUs(){
		AboutUs a = commonservice.findById("contractus", new AboutUs());
		a.setContent(content);
		commonservice.updateDemo(a);
		
		return null;
	}
	
	public AboutUs getContractUs() {
		return contractUs;
	}

	public void setContractUs(AboutUs contractUs) {
		this.contractUs = contractUs;
	}
	
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	
}
